package cn.itsource.user.service;

import cn.itsource.basic.exception.CustomException;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.basic.utils.AjaxResult;
import cn.itsource.user.domain.LoginInfo;
import cn.itsource.user.domain.dto.LoginInfoDto;

public interface ILogininfoService extends IBaseService<LoginInfo> {

    /**
     * 注册用户
     * @param loginInfoDto  登录信息临时对象
     */
    void register(LoginInfoDto loginInfoDto) throws CustomException;

    /**
     * 登录
     * @param loginInfoDto  登录临时对象(username,password,type)
     */
    AjaxResult login(LoginInfoDto loginInfoDto) throws CustomException;
}

